package main

import (
	"chat3/api"
	"chat3/appconfig"
	"chat3/inits"
	"github.com/gin-gonic/gin"
)

func main() {
	router := gin.Default()
	api.Router(router)
	appconfig.Init()
	inits.MysqlInit()
	inits.InitRabbitMq()
	router.Run(":8080") // 监听并在 0.0.0.0:8080 上启动服务
}
